package ru.susu.algebra.transformers;

import java.math.BigInteger;

/**
 * @author akargapolov
 * @since: 02.05.2010
 */
public class BigIntegerModTransformer implements IObjectTransformer<BigInteger>
{
	private BigInteger _m;

	public BigIntegerModTransformer(BigInteger m)
	{
		_m = m;
	}

	@Override
	public BigInteger transformObject(BigInteger obj)
	{
		return obj.mod(_m);
	}

}
